from quart import Blueprint
from src.common.utils.response_helper import ResponseHelper
from src.common.utils.logger import log


response = ResponseHelper()
healthy_route = Blueprint('healthy', __name__)

# cicd探针接口
@healthy_route.route('/healthz', methods=['GET'])
async def healthz():
    log.info("健康检查接口被调用")
    return response.success(
        data={'status': 'ok', 'service': '服务健康'},
        message="服务运行正常"
    )